import { IForm } from "@/base-ui/form";
export const searchFormConfig: IForm = {
  labelWidth: "120px",
  itemStyle: { padding: "10px 50px" },
  /* colLayout: {
    span: 8,
  }, */
  formItems: [
    {
      field: "id",
      type: "input",
      label: "ID",
      placeholder: "请输入ID",
    },
    {
      field: "name",
      type: "input",
      label: "用户名",
      placeholder: "请输入用户名",
    },
    {
      field: "realname",
      type: "input",
      label: "真实姓名",
      placeholder: "请输入真实姓名",
    },
    {
      field: "cellphone",
      type: "input",
      label: "电话",
      placeholder: "请输入电话",
    },
    {
      field: "enable",
      type: "select",
      label: "用户状态",
      placeholder: "请选择用户状态",
      options: [
        {
          title: "启用",
          value: 1,
        },
        {
          title: "禁用",
          value: 0,
        },
      ],
    },
    {
      field: "createAt",
      type: "datePicker",
      label: "创建时间",
      otherOptions: {
        startPlaceholder: "开始时间",
        endPlaceholder: "结束时间",
        type: "daterange",
      },
    },
  ],
};
